<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<body>
<aside id="sidebar" class="sidebar" th:fragment="sidebar">
    <div class="sidebar-inner affix-top">

        <section class="site-overview-wrap sidebar-panel sidebar-panel-active">
            <div class="site-overview" style="max-height: 585px;">
                <div class="site-author motion-element" itemprop="author" itemscope="" itemtype="http://schema.org/Person">
                    <img class="site-author-image" itemprop="image" th:src="@{/resources/blog/image/curry.jpg}" alt="Scaler7">
                    <p class="site-author-name" itemprop="name">Scaler7</p>
                    <p class="site-description motion-element" itemprop="description">I can do all thing!</p>
                </div>
                <nav class="site-state motion-element">
                    <div class="site-state-item site-state-posts">
                        <a href="/blog/archives">
                            <span class="site-state-item-count" th:text="${session.articleCount}"></span>
                            <span class="site-state-item-name">日志</span>
                        </a>
                    </div>
                    <div class="site-state-item site-state-categories">
                        <a href="/blog/categories">
                            <span class="site-state-item-count"></span>
                            <span class="site-state-item-name">分类</span>
                        </a>
                    </div>
                    <div class="site-state-item site-state-tags">
                        <a href="/blog/tags">
                            <span class="site-state-item-count"></span>
                            <span class="site-state-item-name">标签</span>
                        </a>
                    </div>
                </nav>
                <div class="links-of-author motion-element" style="text-align: center">
                    <th:block th:each="index : ${@commons.setting()}">
                        <th:block th:if="${index.value} != null and ${index.value} != ''">
                            <th:block th:switch="${index.key}">
                            
                            <th:block th:case="'social_csdn'">
                                    <span class="links-of-author-item">
                                        <a th:href="@{${index.value}}" target="_blank" title="CSDN">
                                            <i class="fa fa-fw fa-chrome"></i>CSDN
                                        </a>
                                    </span>
                            </th:block>
                                <th:block th:case="'social_github'">
                                    <span class="links-of-author-item">
                                        <a th:href="@{${index.value}}" target="_blank" title="GitHub">
                                            <i class="fa fa-fw fa-github"></i>GitHub
                                        </a>
                                    </span>
                                </th:block>
                                <th:block th:case="'social_qq'">
                                    <span class="links-of-author-item">
                                        <a th:href="@{${index.value}}" target="_blank" title="qq">
                                            <i class="fa fa-fw fa-qq"></i>qq
                                        </a>
                                    </span>
                                </th:block>

                                <th:block th:case="'social_gitee'">
                                    <span class="links-of-author-item">
                                        <a th:href="@{${index.value}}" target="_blank" title="码云">
                                            <i class="fa fa-fw fa-google"></i>码云
                                        </a>
                                    </span>
                                </th:block>

                            </th:block>
                        </th:block>
                    </th:block>

                </div>
                <div class="links-of-blogroll motion-element links-of-blogroll-inline" style="text-align: center">
                    <div class="links-of-blogroll-title">
                        <i class="fa  fa-fw fa-link"></i>
                        友情链接
                    </div>
                    <th:block th:if="${session.links} != 0">
                        <ul th:each="link : ${session.links}" class="links-of-blogroll-list">
                            <li class="links-of-blogroll-item">
                                <a th:href="${link.linkUrl}" th:title="${link.name}" target="_blank">
                                    <th:block th:text="${link.name}"></th:block>
                                </a>
                            </li>
                        </ul>
                    </th:block>


                </div>
            </div>
        </section>
    </div>
</aside>
</body>
</html>